{include('Layout/header')}
<div class="row row-bgcolor">
    <div class='col-md-12 content-title'>
        <h3>基本设置</h3>
    </div>
    <div class='col-md-6 content col-md-offset-3'>
        <form action="{\Rexzy::url('admin/setup')}" method='post'>
            <div class="form-group">
              <label for="title">站点名称</label>
              <input type="text" class="form-control" id="title" name="title" value="{$setval['title']}">
              <p>站点的名称将显示在网页的标题处</p>
            </div>
            <div class="form-group">
              <label for="siteUrl">站点地址</label>
              <input type="text" class="form-control" id="siteUrl" name="siteUrl" value="{$setval['siteUrl']}" >
              <p>站点地址主要用于生成地址的永久链接</p>
            </div>
            <div class="form-group">
              <label for="description">站点描述</label>
              <input type="text" class="form-control" id="description" name="description" value="{$setval['description']}">
              <p>站点描述将显示在网页代码的头部</p>
            </div>
            <div class="form-group">
              <label for="keywords">关键词</label>
              <input type="text" class="form-control" id="keywords" name="keywords" value="{$setval['keywords']}">
              <p>请以半角逗号 "," 分割多个关键字</p>
            </div>
            <button type="submit" class="btn btn-info add-btn">保存设置</button>
        </form>
    </div>
</div>

<script>
    function setTrue() {
        location = "{\Rexzy::url('admin/setup')}";
    }
    
    formVerification( 'form', [
        {
            id: 'title',
            required: true,
            errormessage: '请输入站点名称'
        },
        {
            id: 'siteUrl',
            required: true,
            errormessage: '请输入站点地址'
        },
        {
            id: 'description',
            required: true,
            errormessage: '请输入站点描述'
        },
        {
            id: 'keywords',
            required: true,
            errormessage: '请输入关键词'
        }
    ], setTrue )
</script>
{include('Layout/footer')}